package com.hegongda.dao;

import com.hegongda.bean.Orders;
import com.hegongda.bean.Product;
import com.hegongda.bean.User;
import java.sql.SQLException;
import java.util.List;

public interface AdminDao {
    public int delNav(String cid) throws SQLException;
    public int addNav(String cid,String cname) throws SQLException;
    public int updNav(String cid,String cname) throws SQLException;
    public int addPriduct(Product product) throws SQLException;
    public int delPriduct(String pid,String iid) throws SQLException;
    public List<Product> getPageProduct(int fistnum, int lastnum) throws SQLException;
    public long getProductCount() throws SQLException;
    public Product getOneProduct(String pid) throws SQLException;
    public int updPFlag(int pflag,String pid) throws SQLException;
    public List<User> getPageUser(int fistnum, int lastnum) throws SQLException;
    public long getUserCount() throws SQLException;
    public int delUser(String uid) throws SQLException;
    public int updUser(User user) throws SQLException;
    public User getOneUser(String uid) throws SQLException;
    public List<Orders>  selAllOrder(int pageSize, int pagenum) throws SQLException;
    public long selOrdersCount() throws SQLException;
    public int editCourierNum(String oid,String couriernum) throws SQLException;
    public int editCourier(String oid, String couriernum) throws SQLException;
    public int addintroduce(String iid, String introduce) throws SQLException;
}
